package com.study_security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study_security.dto.MemberDTO;
import com.study_security.dto.ProjectDTO;
import com.study_security.entity.Member;
import com.study_security.dto.ProjectMembersDTO;
import com.study_security.entity.Project;
import com.study_security.entity.ProjectMember;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

import java.util.List;

@Mapper
public interface MemberMapper extends BaseMapper<Member> {

    List<MemberDTO> selectProjectMembersAndTasks(@Param("projectName") String projectName);

    List<ProjectDTO> selectUserProjects(@Param("userId") Long userId);

    List<MemberDTO> selectMembersByProjectId(@Param("projectId") Long projectId);

    List<MemberDTO> selectAllMember();


}

